package com.xuelang.pipeline.client.pipeline.dto;

import com.xuelang.pipeline.client.task.dto.TaskInstanceDTO;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.util.List;

/**
 * 流水线实例运行态配置
 *
 * @author liuyuan.ly
 * @since 2024/6/26 19:37
 */
@Data
public class PipelineInstanceConfigDTO {

    /**
     * 流水线实例信息
     */
    @NotNull(message = "流水线实例不能为空")
    private PipelineInstanceDTO pipelineInstanceDTO;

    /**
     * 流水线任务列表
     */
    @NotNull(message = "流水线实例任务不能为空")
    private List<TaskInstanceDTO> taskList;

    /**
     * 流水线变量设置
     */
    private List<VariableSettingDTO> variableSettingList;
}
